import { Map } from 'immutable'
import { CHANGE_TOP_BANNERS } from './constants'
const initialState = Map({
  topBanners: [],
})

export default (state = initialState, { type, payload }) => {
  switch (type) {
    case CHANGE_TOP_BANNERS:
      return state.set('topBanners', payload)
    default:
      return state
  }
}
